package com.saic.data.table;

public enum TableAction {
	  New,
	  
	  Wait,

	  UploadFile, 

	  Reupload, 

	  UploadRecord,
	  
	  UpdateDB,
	  
	  DeleteFile,
	  
	  Done,
	  
	  ErrorStop,
	  
	  None;
	
	public static TableAction fromString(String string) {
		if (string.equals("New")) return TableAction.New;
		if (string.equals("UploadFile")) return TableAction.UploadFile;
		if (string.equals("UploadRecord")) return TableAction.UploadRecord;
		if (string.equals("UpdateDB")) return TableAction.UpdateDB;
		if (string.equals("DeleteFile")) return TableAction.DeleteFile;
		if (string.equals("Done")) return TableAction.Done;
		return TableAction.None; 
	}
	
	}
